package com.baitiaojun.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @类名 MomentsFeign
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/2/23 16:27
 * @版本 1.0
 */
@FeignClient(value = "imooc-bilibili-moments", path = "/moments")
public interface MomentsFeign {

    @GetMapping("/moments-count")
    Integer getMomentsCount(@RequestParam("userId") Long userId);
}
